package com.xncoding.starter.service;
import com.xncoding.starter.inter.Reading;
import com.xncoding.starter.properties.ReadingProperties;
import lombok.AllArgsConstructor;
public class ReadingService implements Reading {

    // reading相关配置类
    private ReadingProperties readingConfig;

    public ReadingService(ReadingProperties readingConfig) {
        this.readingConfig = readingConfig;
    }

    @Override
    public void reading() {
        System.out.println("start reading... type is {}"+this.readingConfig.getType());
    }

}